import request from '@/utils/request'
export function getChoiceEmployees(params) {
  return request({
    url: '/api/Form/FormProcess/GetChoiceEmployees',
    method: 'get',
    params
  })
}
export function getReturnTypes() {
  return request({
    url: '/api/Form/FormProcess/GetReturnTypes',
    method: 'get',
  })
}
export function getFlow(flowId) {
  return request({
    url: '/api/Form/FormProcess/GetFlow',
    method: 'get',
    params: {
      flowId
    }
  })
}
export function getForm(formId, msgId) {
  return request({
    url: '/api/Form/FormProcess/GetForm',
    method: 'get',
    params: {
      formId,
      msgId
    }
  })
}
export function startForm(data) {
  return request({
    url: '/api/Form/FormProcess/StartForm',
    method: 'post',
    data
  })
}
export function formDeliver(data) {
  return request({
    url: '/api/Form/FormProcess/Deliver',
    method: 'post',
    data
  })
}
export function formPass(data) {
  return request({
    url: '/api/Form/FormProcess/Pass',
    method: 'post',
    data
  })
}
export function formReturn(data) {
  return request({
    url: '/api/Form/FormProcess/Return',
    method: 'post',
    data
  })
}
export function formReject(data) {
  return request({
    url: '/api/Form/FormProcess/Reject',
    method: 'post',
    data
  })
}
export function formCancel(data) {
  return request({
    url: '/api/Form/FormProcess/Cancel',
    method: 'post',
    data
  })
}
export function formSave(data) {
  return request({
    url: '/api/Form/FormProcess/Save',
    method: 'post',
    data
  })
}
export function formComment(data) {
  return request({
    url: '/api/Form/FormProcess/Comment',
    method: 'post',
    data
  })
}
export function deleteComment(commentId) {
  return request({
    url: '/api/Form/FormProcess/DeleteComment',
    method: 'get',
    params: { commentId }
  })
}
export function getFormSteps(data) {
  return request({
    url: '/api/Form/FormProcess/GetFormSteps',
    method: 'post',
    data,
  })
}
export function getDepartments() {
  return request({
    url: '/api/Form/FormProcess/GetDepartments',
    method: 'get'
  })
}
export function getDepartment(dpmId) {
  return request({
    url: '/api/Form/FormProcess/GetDepartment',
    method: 'get',
    params: { dpmId }
  })
}
export function getEmployees() {
  return request({
    url: '/api/Form/FormProcess/GetEmployees',
    method: 'get'
  })
}